package org.testfire.translator.watij.assertions;

import org.testfire.model.assertions.AssertionType;
import org.testfire.model.TestsetType;
import org.testfire.translator.TestFireTranslator;
import org.testfire.translator.TranslatorFactory;

/**
 * Created by IntelliJ IDEA.
 * User: granum
 * Date: Sep 2, 2007
 * Time: 5:49:04 PM
 */
public class AssertionTranslator<T> implements TestFireTranslator<AssertionType>
{

	

	public Object translate( TestsetType testset, AssertionType type )
	{
		return TranslatorFactory.get( type.getAssertion().getClass()).translate( testset, type.getAssertion() );
	}
}